﻿using System;

namespace PD.ShP.Code
{
    /// <summary>
    /// An association between list and workflow information.
    /// </summary>
    public class WorkflowAssociationInformation
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WorkflowAssociationInformation"/> class.
        /// </summary>
        /// <param name="id">The base template id.</param>
        /// <param name="url">The parent list URL.</param>
        /// <param name="name">The name of the association.</param>
        public WorkflowAssociationInformation(Guid id, string url, string name)
        {
            this.BaseTemplateId = id;
            this.ParentListUrl = url;
            this.AssociationName = name;
        }

        /// <summary>
        /// Gets the base template id.
        /// </summary>
        public Guid BaseTemplateId { get; private set; }

        /// <summary>
        /// Gets the parent list URL.
        /// </summary>
        public string ParentListUrl { get; private set; }

        /// <summary>
        /// Gets the name of the association.
        /// </summary>
        /// <value>
        /// The name of the association.
        /// </value>
        public string AssociationName { get; private set; }
    }
}
